package com.wisdom.server.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @description: <nacos register information>
 * @author: Leo
 * @date:2021-08-21 16:39
 */
@Data
@Component
public class ServerRpcConfig {

    //服务ip/域名
    @Value("${rpc.server.serverIp}")
    private String serverIp;

    //服务端口
    @Value("${rpc.server.serverPort}")
    private int serverPort;

    //服务权重
    @Value("${rpc.server.nacos.weight:1.0}")
    private double weight;

    //集群名称
    @Value("${rpc.server.nacos.clusterNames:null}")
    private String clusterNames;

    @Value("${rpc.server.nacos.timeout:10000}")
    private int connectTimeout;

    @Value("${rpc.server.nacos.serverAdd}")
    private String serverAdd;

    @Value("${rpc.server.nacos.groupName:WISDOM-RPC}")
    private String groupName;

}
